<!DOCTYPE html>
<html>
<head>
    @include("/include/_header.html", {'title':'库区管理'}){}
</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">查询</div>
                <div class="layui-card-body">
                    <div class="layui-form">
                        <div class="test-table-reload-btn" style="margin-bottom: 1vh;">
                            库区名称：
                            <div class="layui-inline">
                                <input class="layui-input" style="width:18vw" name="areaName" id="areaName"/>

                            </div>
                            跨区名称：
                            <div class="layui-inline">
                                <select class="layui-input" style="width:18vw" name="spanName" id="spanName">
                                    <option value=""></option>
                                    <option value="1">废钢区</option>
                                    <option value="2">渣钢区</option>
                                </select>
                            </div>


                            <div class="layui-row" style="margin-top: 1vh">
                                <div class="layui-col-md2 layui-col-md-offset10">
                                    <button id="btnSearch" class="layui-btn">搜索</button>
                                    <button id="btnReset" class="layui-btn">重置</button>
<!--                                    <button id="btnAdd" class="layui-btn">新增</button>-->

                                </div>
                            </div>

                        </div>
                    </div>
                    <table class="layui-hide" id="area-info" lay-filter="area-info"></table>


                </div>
                <!-- 表格操作按钮 -->
                <script type="text/html" id="online-status">
                    {{#  if(d.isEffective == 'Y' && d.parentId == '-1'){ }}
                    <button class="layui-btn layui-btn-xs">正常</button>
                    {{#  } else if(d.isEffective == 'N' && d.parentId == '-1') { }}
                    <button class="layui-btn layui-btn-danger layui-btn-xs">禁用</button>
                    {{#  } else if( d.parentId != '-1')   { }}
                    <input type="checkbox" name="switchStatus" value="{{= d.isEffective }}" title="正常|禁用" lay-skin="switch" lay-filter="status-switch" {{= d.isEffective == 'Y' ? "checked" : "" }}>
                    {{#  } }}
                </script>


                <!-- 头部工具栏 -->
                <script type="text/html" id="sys-area-toolbar">
                    <div class="layui-btn-container">
                        <button class="layui-btn layui-btn-sm" lay-event="doAdd" permission="sys/menu/add">新增</button>
                    </div>
                </script>

                <script type="text/html" id="sys-area-tool">

                    {{#  if(d.parentId == '-1'){ }}
                    <t:a cssClass="layui-btn  layui-btn-xs" layEvent="edit" label="编辑"></t:a>
                    {{#  } else { }}
                    <t:a cssClass="layui-btn layui-btn-xs layui-bg-blue" layEvent="mod" label="修改"></t:a>
                    <t:a cssClass="layui-btn layui-btn-danger layui-btn-xs" layEvent="del" label="删除"></t:a>
                    {{#  } }}

                </script>

                <script type="text/html" id="materialNo-dropdpwn">
                    {{#  if(d.parentId != '-1'){ }}
                    <button class="layui-btn layui-btn-primary materialNo-dropdpwn">
                        <span>{{= d.stockMaterialNo || '请选择' }}</span>
                        <i class="layui-icon layui-icon-down layui-font-12"></i>
                    </button>
                    {{#  } }}

                </script>

                <script type="text/html" id="materialName-dropdpwn">
                    {{#  if(d.parentId != '-1'){ }}
                    <button class="layui-btn layui-btn-primary materialName-dropdpwn">
                        <span>{{= d.stockMaterialName || '请选择' }}</span>
                        <i class="layui-icon layui-icon-down layui-font-12"></i>
                    </button>
                    {{#  } }}

                </script>


            </div>
        </div>
    </div>
</div>

<script src="${ctxPath}/assets/sys/manage/area_index.js"></script>

</body>
</html>

